package com.daigoudao.web.model;

import java.io.Serializable;

import com.daigoudao.util.Constants;
import com.daigoudao.util.NumberUtil;

/**
 * 物流信息
 * 
 * @author zheng
 * 
 */
public class Logistics implements Serializable {

	private static final long serialVersionUID = -552848690468739752L;

	/**
	 * 首伯费用
	 */
	private double price;

	/**
	 * 续件费用
	 */
	private double continuedPrice;

	public Logistics() {

	}

	public Logistics(double price, double continuedPrice) {
		this.price = price;
		this.continuedPrice = continuedPrice;
	}

	public double getPrice() {
		return NumberUtil.getBigDecimal(price, Constants.SCALE).doubleValue();
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getContinuedPrice() {
		return NumberUtil.getBigDecimal(continuedPrice, Constants.SCALE)
				.doubleValue();
	}

	public void setContinuedPrice(double continuedPrice) {
		this.continuedPrice = continuedPrice;
	}
}
